import { AxiosResponse } from "axios";
import type { ReturnImageInfosObj } from "@/types";
import request from "./request";

const fetchImgInfosListInvisible = (
    number?: number, arr?: string
): Promise<
  AxiosResponse<ReturnImageInfosObj>
> => {
  return request({
    url: "/invisible_water_pics",
    method: "get",
    params: {
      num: number || 30,
      showPictures: arr || "[0]"
    },
  });
};

const resurgenceSinglePictureById = (
  picId: number
): Promise<AxiosResponse<string>> => {
  return request({
    url: "/resurgence",
    method: "get",
    params: {
      id: picId,
    },
  });
};

export { fetchImgInfosListInvisible, resurgenceSinglePictureById };
